package com.lbl.exception;

import com.lbl.enume.ResultEnum;

/**
 * Created by 李柏霖
 * 2020/11/14 20:26
 */

public class SellException extends RuntimeException {
    private Integer code;

    public SellException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }

    public SellException(Integer code, String message) {
        super(message);
        this.code = code;
    }

}
